package com.yixing.tech.common.entity;

import com.yixing.tech.common.CommonConstant;
import lombok.Data;
import org.bson.Document;

import java.util.Date;
import java.util.List;


/**
 * 盘点作业
 *
 * @author yixing tech
 * @since 1.0.0
 */
@Data
public class InventoryWork extends BaseEntity {
    private String code;
    private String inventoryCode;
    private String materialCode;
    private String materialName;
    private String locationCode;
    private String batchNo;
    private String partitionSide;
    private String containerCode;
    private Document containerType;
    private String colorName;
    private String languageName;
    private String group;
    private String returnLocationCode;
    private double checkNum;
    private double realNum;

    private Document status = CommonConstant.InventoryStatus.notOut.wrapDictItemDoc();
    private boolean erpReport = false;
    private boolean erpAudit;
    private String erpMsg;
    private Date erpReportTime;
    private Date erpBizDate;
    private String erpBillNumber;
    private String erpBillId;
    // 回复标记，如果是盘品必须要erp上报则回复标记是 true
    private boolean erpResFlag;
    private boolean erpApproved;
    private String erpReason;

    private String inventoryNote;
    private Date inventoryTime;
    private String inventoryUserId;
    private String inventoryUserName;

    private List<Document> stocks;
}
